import React from 'react';
import { message, Button } from 'antd';

interface FooProps {
  /**
   * @这是标题
   */
  title: string;
  /**
   * @样式类名
   */
  className?: string;
}

export default ({ title, className }: FooProps) => {
  return (
    <div className={className}>
      <h1 className="hd-foo">{title}</h1>
      <div>
        <Button onClick={() => message.success('再点一下试试！')}>
          点击一下
        </Button>
      </div>
    </div>
  );
};
